	
	<?php
class model_setting extends CI_Model {

	public function __construct()
	{
		$this->load->database();
	}
	
	public function get_setting(){
		$query = "SELECT * FROM tbl_settings";
		$res = mysql_query($query);
		$setting = array();
		while($row = mysql_fetch_assoc($res)){
			$setting[$row['setting_name']] = $row['setting_value'];
		}
		return $setting;
	}

}
